﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BugLabsLibrary
{
    public class DweetThing
    {
        /// <summary>
        /// Unique name of thing on Dweet.IO.  This is the name all data is published under
        /// </summary>
        public string ThingName { get; set; }
        /// <summary>
        /// Generic reference that can be used by application software to link this thing to real device
        /// </summary>
        public string DeviceReference { get; set; }
        /// <summary>
        /// Set this to "" for unlocked things and to the proper key for locked things
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// Comma seperated list of email addresses to receive alert for this thing.  Automatically populated by HAPI
        /// </summary>
        public string AlertRecipients { get; internal set; }
        public string AlertCondition { get; internal set; }

    }

    public class Dweet
    {
        public string ThingName { get; set; }
        public string ChannelName { get; set; }
        public string Value { get; set; }
        public DateTime TimeStamp { get; set; }
    }
}
